<template>
  <div class="page">
    <div class="goods-content">
      <div class="search-value">正在搜索 "<span>123</span>" ，为你找到以下商品 </div>
      <div class="tabs-wrap">
        <Tabs value="name1">
          <TabPane label="综合" name="name1"></TabPane>
          <TabPane label="信誉" name="name2"></TabPane>
          <TabPane label="销量" name="name2"></TabPane>

        </Tabs>
        <div class="agreement">
          <span class="agreement-text">当前商品来源:</span>
          <span class="agreement-value"> 淘宝/天猫 </span>
        </div>
      </div>
      <div class="shop-list">
        <div class="shop-info-wrap" v-for="i in 10">
          <div class="shop-info">
            <img class="banner" src="@/assets/images/login/banner.jpg" alt="">
            <div class="left">
              <router-link to="/shop/details" class="shop-name">
                <img class="logo" src="@/assets/images/login/banner.jpg" alt="">
                <span class="name">卡课严选自</span>
              </router-link>
              <span class="title">卖家: 1sad</span>
              <span class="num">好评率: 99%</span>
            </div>
          </div>
          <div class="goods-list">
            <product class="product" v-for="i in 4" :key="i"></product>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Product from "./components/product";
export default {
  name: "index",
  components: {Product}
}
</script>

<style scoped lang="less">
.page {
  .tabs-wrap {
    position: relative;
    .agreement {
      position: absolute;
      right: 0;
      bottom: 25px;
      font-size: 14px;
      .agreement-text {
        color: @t-title-color;
      }
      .agreement-value {
        color: @t-title-color;
      }
    }
  }
  .goods-content {
    width: 1200px;
    margin: 0 auto;
    margin-top: 44px;
    .search-value {
      margin-bottom: 12px;
      color: @t-text-color;
      font-size: 14px;
      span {
        color: @primary-color;
      }
    }
    .shop-list {
      .shop-info-wrap {
        display: flex;
        padding: 24px 0;
        border-bottom: 1px solid #ECECEC;
        .shop-info {
          display: flex;
          width: 364px;
          .banner {
            display: block;
            width: 96px;
            height: 96px;
            border-radius: 4px;
          }
          .title {
            display: block;
            margin-top: 8px;
            color: @t-text-color;
            font-size: 12px;
          }
          .price {
            display: block;
            margin-top: 8px;
            margin-bottom: 2px;
            color: @t-title-color;
            font-size: 16px;
            font-weight: 500;
          }
          .num {
            color: @t-text-color;
            font-size: 12px;
            font-weight: 500;
          }
          .left {
            margin-left: 16px;
          }
          .shop-name {
            display: flex;
            align-items: center;
            margin-bottom: 16px;
            cursor: pointer;
            &:hover {
              .name {
                color: @primary-color;
              }
            }
            .logo {
              display: block;
              margin-right: 6px;
              width: 24px;
              height: 24px;
              border-radius: 50%;
            }
            .name {
              color: @t-text-color;
              font-size: 12px;
              font-weight: 500;
            }
          }
        }
        .goods-list {
          flex: 1;
          display: flex;
          &:first-child {
            margin-left: 0;
          }
          .product {
            flex: 1;
            margin-left: 62px;
            &:first-child {
              margin-left: 0px;
            }
          }
        }
      }
    }
  }
}
</style>